/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.options.bank.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 选项库Entity
 * @author zpp
 * @version 2020-03-27
 */
@Table(name="t_options_bank", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="obj_name", attrName="objName", label="选项名称", queryType=QueryType.LIKE),
		@Column(name="option", attrName="option", label="选项"),
		@Column(name="problem_id", attrName="problemId", label="问题标识"),
	}, orderBy="a.option"
)
public class ToptionsBank extends DataEntity<ToptionsBank> {
	
	private static final long serialVersionUID = 1L;
	private String objName;		// 选项名称
	private Integer option;		// 选项
	private String problemId;		// 问题标识
	
	public ToptionsBank() {
		this(null);
	}

	public ToptionsBank(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="选项名称长度不能超过 255 个字符")
	public String getObjName() {
		return objName;
	}

	public void setObjName(String objName) {
		this.objName = objName;
	}
	
	public Integer getOption() {
		return option;
	}

	public void setOption(Integer option) {
		this.option = option;
	}
	
	@Length(min=0, max=50, message="问题标识长度不能超过 50 个字符")
	public String getProblemId() {
		return problemId;
	}

	public void setProblemId(String problemId) {
		this.problemId = problemId;
	}
	
}